def convert_to_int(num):
    if num is None:
        return 0
    else:
        return int(num)


def parse_page_params(request):
    page = request.query_params.get('page', 1)
    page_size = request.query_params.get('page_size', 10)
    return convert_to_int(page), convert_to_int(page_size)
